package com.design.factoryPattern;

public class BigFactory {
    public static void main(String[] args) {
        Car car = new WuLing();
        car.print();

        Mask n95 = new N95();
        n95.print();
    }
}

interface Car{
    public void print();
}
class WuLing implements Car{
    @Override
    public void print(){
        System.out.println("WuLing");
    }
}

interface Mask{
    public void print();
}
class N95 implements Mask{
    public void print(){
        System.out.println("N95 MASK！");
    }
}
